const child_process = require("child_process");
// const roolup = require("roolup")


function compile(cb) {
    roolup.roolup()
}

exports.compile = function (cb) {
    let exe = child_process.spawn('cmd.exe', ['/c', 'D:\\SystemManagem\\LayaProject\\game\\object\\tools\\compile.bat']);
    exe.stdout.on("data", d => {
        console.log(d);
    })
    exe.stderr.on("data", d => {
        console.log(d);
    })

    exe.on('exit', cb)
}

